#include "window_helper.hpp"

namespace ImGui
{
    void PlaceNextWindowCenterScreen (ImVec2 window_size)
    {
        const auto full = GetMainViewport()->Size;
        const auto top_left = ImVec2((full.x - window_size.x)/2.f, (full.y-window_size.y)/2.f);

        SetNextWindowSize(window_size);
        SetNextWindowPos(top_left);
    }
}
